<form id="edit-form">
<div id="request-input">
  {{#if description}}
    <div class="well" style="padding: 10px; margin-bottom: 10px;">{{description}}</div>
  {{/if}}
  <table class="fixed" width="100%">
  <tr>
    <th>Field Name</th>
    <th>Type</th>
    <th width="50%">Value</th>
  </tr>
  {{#if typeField}}
    {{#with typeField}}
      <tr>
        <td>
          {{#if required}}<span class="required">*</span>{{/if}}
          {{name}}:
        </td>
        <td>
          <span class="inactive">schema name</span>
        </td>
        <td>
          {{>field.hbs}}
        </td>
      </tr>
    {{/with}}
  {{/if}}
  {{#if hasFields}}
    {{#each fields}}
      <tr>
        <td>
          {{#if required}}<span class="required">*</span>{{/if}}
          {{name}}
          {{#if description}}
            <span class="tip" data-title="{{description}}"><i class="glyphicon glyphicon-info-sign"></i></span>
          {{/if}}
        </td>
        <td>
          <span class="inactive">{{{displayType}}}</span>
        </td>
        <td>
          {{#if writable}}
            {{>field.hbs}}
          {{else}}
            <span class="inactive">
              {{#if value}}
                {{value}}
              {{else}}
                &ndash;
              {{/if}}
          {{/if}}
        </td>
      </tr>
    {{/each}}
  {{else}}
    <tr>
      <td colspan="3" style="text-align: center;">
        <br/>
        {{#ifEqual mode "action"}}
          <i>This action has no inputs</i>
        {{else}}
          {{#ifEqual mode "update"}}
            <i>This resource has no fields that can be edited</i>
          {{else}}
            <i>This resource has no fields that can be set</i>
          {{/ifEqual}}
        {{/ifEqual}}
      </td>
    </tr>
  {{/if}}
  </table>
</div>

<div id="request-output">
</div>
</form>
